﻿using Wicresoft.SMS.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;

namespace SMS.Gateway.Host.Test
{
    
    
    /// <summary>
    ///This is a test class for sqlCommonServiceTest and is intended
    ///to contain all sqlCommonServiceTest Unit Tests
    ///</summary>
    [TestClass()]
    public class sqlCommonServiceTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for sqlCommonService Constructor
        ///</summary>
        [TestMethod()]
        public void sqlCommonServiceConstructorTest()
        {
            IConnectStringProvider provider = null; // TODO: Initialize to an appropriate value
            sqlCommonService target = new sqlCommonService(provider);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for GetContacts
        ///</summary>
        [TestMethod()]
        public void GetContactsTest()
        {
            IConnectStringProvider provider = null; // TODO: Initialize to an appropriate value
            sqlCommonService target = new sqlCommonService(provider); // TODO: Initialize to an appropriate value
            string UserKey = string.Empty; // TODO: Initialize to an appropriate value
            string Password = string.Empty; // TODO: Initialize to an appropriate value
            IEnumerable<Contact> expected = null; // TODO: Initialize to an appropriate value
            IEnumerable<Contact> actual;
            actual = target.GetContacts(UserKey, Password);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetDepartments
        ///</summary>
        [TestMethod()]
        public void GetDepartmentsTest()
        {
            IConnectStringProvider provider = null; // TODO: Initialize to an appropriate value
            sqlCommonService target = new sqlCommonService(provider); // TODO: Initialize to an appropriate value
            IEnumerable<Department> expected = null; // TODO: Initialize to an appropriate value
            IEnumerable<Department> actual;
            actual = target.GetDepartments();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
